import { useCookies } from '@vueuse/integrations/useCookies'
const TokenKey = "admin-token"
const cookie = useCookies()

// 获取token
export const getToken = () => cookie.get(TokenKey)

// 设置token
export const setToken = token => cookie.set(TokenKey,token)

// 清除token
export const removeToken = () => cookie.remove(TokenKey)
